<admintpl file="header" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('user/index')}">{:L('ADMIN_USER_INDEX')}</a></li>
            <li class="active"><a href="{:U('user/add')}">{:L('ADMIN_USER_ADD')}</a></li>
        </ul>
        <form method="post" class="form-horizontal js-ajax-form" action="{:U('User/add_post')}">
           

            <div class="form-group">
                <label class="col-md-2 control-label">{:L('USERNAME')}</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="user_login">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{:L('REALNAME')}</label>
                <div class="col-md-6">
                    <input type="text" class="form-control" name="real_name">
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{:L('DEPARTMENT')}</label>
                <div class="col-md-6">
                    <select name="department_id" class="form-control">
                        <foreach name="Department" item="vo">
                            <option value="{$vo.id}">{$vo.department_name}</option>
                        </foreach>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">{:L('ROLE')}</label>
                <div class="col-md-6">
                    <select name="role_id" class="form-control">
                        <option value="1">查看权</option>
                        <option value="2">编辑权</option>
                        <option value="3">审核权</option>
                        <option value="4">分配权</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">登录密码</label>
                <div class="col-md-6">
                    <input type="password" class="form-control" name="user_pass">
                </div>
            </div>
            <!-- <div class="form-group">
                <label class="col-md-2 control-label">{:L('ROLE')}</label>
                <div class="col-md-6">
                    <foreach name="roles" item="vo">
                    <label class="checkbox inline"><input value="{$vo.id}" type="checkbox" name="role_id[]" <if condition="sp_get_current_admin_id() neq 1 && $vo['id'] eq 1">disabled="true"</if>>{$vo.name}</label>
                    </foreach>
                </div>
            </div> -->

            <div class="form-actions col-md-10 col-md-offset-2">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
            </div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>